package com.service.impl;

import com.dao.MeetingRecordDao;
import com.dao.impl.MeetingRecordDaoImol;
import com.domain.MeetingRecord;
import com.service.MeetingService;
import com.sun.corba.se.spi.ior.MakeImmutable;

import java.util.ArrayList;

public class MettingServiceImpl implements MeetingService {
    private final MeetingRecordDao dao = new MeetingRecordDaoImol();
    @Override
    public boolean save(MeetingRecord meeting) {

        return dao.save(meeting);
    }

    @Override
    public boolean delete(int id) {
        return dao.delete(id);
    }

    @Override
    public ArrayList<MeetingRecord> select() {

        return dao.select();
    }

    @Override
    public boolean update(MeetingRecord meeting) {
        return dao.update(meeting);
    }
}
